package org.eiahe.hr.salary.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.eiahe.hr.salary.domain.BonusCalculation;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 奖金核算视图对象
 *
 * @author zhangnn
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = BonusCalculation.class)
public class BonusCalculationVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 核算ID
     */
    @ExcelProperty(value = "核算ID")
    private Long calculationId;

    /**
     * 租户ID
     */
    @ExcelProperty(value = "租户ID")
    private String tenantId;

    /**
     * 工号
     */
    @ExcelProperty(value = "工号")
    private String employeeNo;

    /**
     * 员工姓名
     */
    @ExcelProperty(value = "员工姓名")
    private String employeeName;

    /**
     * 奖金类型
     */
    @ExcelProperty(value = "奖金类型")
    private String bonusType;

    /**
     * 奖金金额
     */
    @ExcelProperty(value = "奖金金额")
    private BigDecimal bonusAmount;

    /**
     * 核算规则
     */
    @ExcelProperty(value = "核算规则")
    private String calculationRule;

    /**
     * 核算人
     */
    @ExcelProperty(value = "核算人")
    private String calculator;

    /**
     * 核算时间
     */
    @ExcelProperty(value = "核算时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date calculationTime;

    /**
     * 核算状态(0待审核 1已审核 2已发放)
     */
    @ExcelProperty(value = "核算状态")
    private String calculationStatus;

    /**
     * 审核人
     */
    @ExcelProperty(value = "审核人")
    private String auditor;

    /**
     * 审核时间
     */
    @ExcelProperty(value = "审核时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date auditTime;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间
     */
    @ExcelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
